package com.sanxiang.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sanxiang.entity.OrderVO;
import org.apache.ibatis.annotations.Mapper;

//再对应的mapper上面实现基本的接口 BaseMapper
@Mapper
public interface OrderVOMapper extends BaseMapper<OrderVO> {
    //所有的CRUD都已经完成
    //不需要像以前一样配置一大堆文件：pojo-dao（连接mybatis，配置mapper.xml文件）==>service-controller
    Page<OrderVO> selectAllByPage(Page<OrderVO> page);

    OrderVO selectAllByOrderId(Integer orderId);

}